<?php

// $Id: ci_301_ci_form.class.php 1836 2009-09-09 12:56:57Z ogrebg $

require_once(TANGRA_MAIN_DIR.'form/guardable_form.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/text/form_field_text.class.php');
require_once(TANGRA_MAIN_DIR.'/form/static_html_form_generator.class.php');


class VPage_301_Form extends Guardable_Form {
	function __construct() {
		parent::__construct('vpage', 'admin/modules/tangra_cms/vpt/301/vpage_edit_301.php');

		$f_location = new Form_Field_Text('location', true, 255);
		$this->add_field($f_location);

	}


	public function generate_html() {
		$html_gen = new Static_HTML_Form_Generator($this, 'modules/form_html_tpl_static_ajax_metallic_en', 'en');
		$html_gen->create_default_tpl_maps();

		printbr('<pre>');
		printbr(htmlentities($html_gen->get_static_html()));
		printbr('</pre>');
	}
}
